<!DOCTYPE html>
<html lang="en">
<head>
    #include("../include/header.html")
</head>
<body>
<div class="container">
    #include("../include/menu.html")

    <div class="row">
        <div class="col-sm-3"></div>
        <div class="col-sm-6">
            <form class="form-horizontal" id="inputForm" action="${pathPrefix}/form" method="post">
                <input type="hidden" name="id" value="${data.id}"/>

                <div class="form-group">
                    <label for="name" class="col-sm-2 control-label">name</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="name" name="name" value="${data.name}" required/>
                    </div>
                </div>

                <div class="form-group">
                    <label for="description" class="col-sm-2 control-label">description</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="description" name="description"
                               value="${data.description}"/>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="button" onclick="doSubmit()" class="btn btn-primary">提交</button>
                        <button type="button" onclick="goHistory()" class="btn btn-danger">取消</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="col-sm-3"></div>
    </div>
</div>
#include("../include/footer.html")
</body>

</html>